package tutorialFiles;

public class Block {

	private boolean isActive;
	private BlockType type;
	
	public enum BlockType {
	BlockType_Default(0),
	BlockType_Grass(1),
	BlockType_Dirt(2),
	BlockType_Water(3),
	BlockType_Stone(4),
	BlockType_Brick(5),
	BlockType_Wood(6),
	BlockType_Sand(7),
	BlockType_NumTypes(8);
	
	private int blockID;
	BlockType(int i){
		blockID=i;
	}
	public int GetID(){
		return blockID;
	}
	
	
	
	}//end of block type
	
	public Block(BlockType type){
		
		this.type =type;
		
	}//end of Block(BlockType type)
	
	public boolean IsActive(){
		return isActive;
	}//end isActive
	
	public void SetActive(boolean active)
	{
		isActive = active;
	}//end set
	
	public int GetId()
	{
		return type.GetID();
	}//end getId
	
}//end block
